package com.smile.controller;

import com.smile.service.TicketService;
import com.smile.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    UserService userService;

    @GetMapping("test")
    public String test(){
        userService.buyTicket();
        return "调用成功请看后台";
    }
}
